#define paginate(currentPage, totalPage, nextFun,preFun)
	#if(totalPage <= 0 || currentPage > totalPage) #return #end
	#setLocal(startPage = currentPage - 4)
	#if (startPage < 1) #setLocal(startPage = 1) #end
	
	#setLocal(endPage = currentPage + 4)
	#if (endPage > totalPage) #setLocal(endPage = totalPage) #end
	
	<div class="dataTables_paginate paging_simple_numbers">
		#if (currentPage == 1)
				<a class="paginate_button previous disabled"
						aria-controls="DataTables_Table_0" data-dt-idx="0" tabindex="0">上一页</a>
		#else
			<a class="paginate_button previous disabled"
						aria-controls="DataTables_Table_0" data-dt-idx="#(currentPage-1)" tabindex="0" onclick="#(preFun)">上一页</a>
		#end
		#if (currentPage == totalPage)
		<a class="paginate_button next disabled"
					aria-controls="DataTables_Table_0" data-dt-idx="2" tabindex="0">下一页</a>
		#else
		<a class="paginate_button next disabled"
					aria-controls="DataTables_Table_0" data-dt-idx="#(currentPage+1)" tabindex="0" onclick="#(nextFun)">下一页</a>
		#end
	</div>
	
#end